{{!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
}}

<div {{bindAttr class=":row :comparison-row :bottom-border configData.isHiddenByFilter:hide configData.hasCompareDiffs:has-compare-diffs"}} {{QAAttr "property-row"}}>
  <div class="col-md-3 property-name-column">
    {{#if configData.showLabel}}
        <span class="control-label">
          {{formatWordBreak configData.displayName}}
          {{#if configData.isSecureConfig}}
            <a href="javascript:void(null);">
              <i class="glyphicon glyphicon-lock" rel="tooltip" data-toggle="tooltip" title="security knob"></i>
            </a>
          {{/if}}
        </span>
    {{/if}}
  </div>
  <div class="col-md-4 property-value-column">
    {{#if controller.selectedConfigGroup.isDefault}}
      {{! Comparing config-versions from Default config-group}}
      <span {{bindAttr class="configData.isMock:undefined :compare-config-cell"}}>{{configData.value}}&nbsp;{{configData.unit}}</span>
      {{#unless configData.isMock}}
        {{#if configData.supportsFinal}}
          <i {{bindAttr class=":glyphicon :glyphicon-lock configData.isFinal::hidden" }}></i>
        {{/if}}
      {{/unless}}
    {{else}}
      {{#if configData.hasCompareDiffs}}
      {{! Comparing config-versions from Non-Default config-group}}
        {{#each compareConfig in configData.compareConfigs}}
          {{#if compareConfig.isComparison}}
            {{template "templates/common/configs/configs_comparison_cell"}}
          {{/if}}
        {{/each}}
      {{else}}
      {{! If config values of non-default group haven't been changed then show their values}}
        {{#each compareConfig in configData.overrides}}
          {{template "templates/common/configs/configs_comparison_cell"}}
        {{/each}}
      {{/if}}
    {{/if}}
  </div>
  <div class="col-md-4 col-md-offset-1 property-value-column">
    {{#if controller.selectedConfigGroup.isDefault}}
      {{! Comparing config-versions from Default config-group}}
      {{#each compareConfig in configData.compareConfigs}}
        {{template "templates/common/configs/configs_comparison_cell"}}
      {{/each}}
    {{else}}
      {{#if configData.hasCompareDiffs}}
      {{! Comparing config-versions from Non-Default config-group}}
        {{#each compareConfig in configData.compareConfigs}}
          {{#if compareConfig.isOriginalSCP}}
            {{template "templates/common/configs/configs_comparison_cell"}}
          {{/if}}
        {{/each}}
      {{else}}
      {{! If config values of non-default group haven't been changed then show their values}}
        {{#each compareConfig in configData.overrides}}
          {{template "templates/common/configs/configs_comparison_cell"}}
        {{/each}}
      {{/if}}
    {{/if}}
  </div>
</div>
